//
//  LCTaskService.h
//  lechuang
//
//  Created by Mr_hi on 2023/3/28.
//  Copyright © 2023 Mooyi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LCCouponAdvertModel.h"
#import "LCUnionModel.h"
#import "LCTaskModel.h"
#import "LCMyTaskModel.h"
#import "LCTaskDetailModel.h"
#import "LCStudyModel.h"
@interface LCTaskService : NSObject

+(AFHTTPSessionManager *)sharedManager;

//获取公告
+ (void)getNoticeDataWithBlock:(void(^)(BOOL isSuccess, NSArray <LCNoticeModel *>* list))block;

//提交表单
+ (void)saveFormWithFormId:(NSString *)formId Other:(NSMutableDictionary *)other Block:(void(^)(BOOL isSuccess))block;

//获取渠道信息
+ (void)getUnionDataWithBlock:(void(^)(BOOL isSuccess, NSArray <LCUnionModel *>* list))block;

//获取闪游任务列表
+ (void)getAreaTaskListWithAppId:(NSString *)appId Key:(NSString *)secretKey OrderType:(NSInteger)type PageNum:(NSInteger)page Block:(void(^)(BOOL isSuccess, NSArray <LCTaskModel *>* list, NSInteger hasData))block;

//获取渠道赚任务列表
+ (void)getSearchTaskListWithPage:(NSInteger)page SearchKey:(NSString *)searchKey Block:(void(^)(BOOL isSuccess, NSArray <LCXunKaTaskModel *>* list, NSInteger total))block;

//获取多游任务列表
+ (void)getGameTaskListWithAppId:(NSString *)appId Key:(NSString *)secretKey PageNum:(NSInteger)page Block:(void(^)(BOOL isSuccess, NSArray <LCGameTaskModel *>* list))block;

//获取卡商平台抽成比例
+ (void)getCardTaskPointWithBlock:(void(^)(BOOL isSuccess, CGFloat point))block;

//获取卡商任务列表
+ (void)getHaoKaTaskListWithBlock:(void(^)(BOOL isSuccess, NSArray <LCCardTaskModel *>* list))block;

//获取卡商任务详情
+ (void)getHaoKaTaskDetailWithId:(NSString *)Id Block:(void(^)(BOOL isSuccess, LCCardTaskModel *detail))block;

//卡商申请发送验证码
+ (void)sendCodeWithParam:(NSMutableDictionary *)param Block:(void(^)(BOOL isSuccess))block;

//卡商申请
+ (void)cardApplyWithParam:(NSMutableDictionary *)param Block:(void(^)(BOOL isSuccess))block;

//保存价格
+ (void)saveCardPriceWithGoodId:(NSString *)good_id Amount:(NSString *)amount Block:(void(^)(BOOL isSuccess))block;

//获取讯卡商品列表
+ (void)xunKaTaskListWithPageNum:(NSInteger)page Block:(void(^)(BOOL isSuccess, NSArray <LCXunKaTaskModel *>* list, NSInteger total))block;

//获取申卡链接URL
+ (void)getApplyUrlWithParam:(NSMutableDictionary *)param Salt:(NSString *)salt Block:(void(^)(BOOL isSuccess, NSString *applyUrl))block;

//下载任务应用
+ (void)downloadTaskAppWithAppID:(NSString *)appid LaunchID:(NSString *)launchid Block:(void(^)(BOOL isSuccess, NSDictionary *field))block;
//启动任务应用
+ (void)openTaskAppWithDownloadID:(NSString *)downloadID Block:(void(^)(BOOL isSuccess, NSDictionary *field))block;

//普通任务上报审核
+ (void)uploadTaskWithRewardID:(NSString *)rewardID RewardKey:(NSString *)rewardKey Name:(NSString *)name IdCard:(NSString *)idCard Phone:(NSString *)phone Block:(void(^)(BOOL isSuccess))block;

//截图任务提交接口
+ (void)submitTaskWithParam:(NSMutableDictionary *)param Block:(void(^)(BOOL isSuccess))block;

//获取多游任务列表
+ (void)getMyTaskGameListWithAppId:(NSString *)appId Key:(NSString *)secretKey PageNum:(NSInteger)page Block:(void(^)(BOOL isSuccess, NSArray <LCGameTaskModel *>* list))block;

//获取我的任务列表
+ (void)myTaskListWithPage:(NSInteger)page Status:(NSString *)status Block:(void(^)(BOOL isSuccess, NSArray <LCMyTaskModel *>* list, NSInteger total))block;

//获取任务详情
+ (void)taskDetailWithAppId:(NSString *)appid LaunchId:(NSString *)launchid Block:(void(^)(BOOL isSuccess, LCTaskDetailModel * taskDetail))block;

//获取学习中心列表
+ (void)getStudyListWithClassID:(NSString *)classid Page:(NSInteger)page SearchKey:(NSString *)searchKey Block:(void(^)(BOOL isSuccess, NSArray <LCStudyModel *>* list, NSInteger total))block;

@end

